T
User-defined dialog result type. In most cases System.Object.ToString is used as the button content.
Cocktail Help Reference
ShowMessageAsync<T>(String,IEnumerable<T>,String) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IDialogManager Interface > ShowMessageAsync Method : ShowMessageAsync<T>(String,IEnumerable<T>,String) Method



message
The message to display.
dialogButtons
A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
title
Optional title of the message box.

Glossary Item Box

Displays a modal message box.

Syntax

Visual Basic (Declaration) 
Overloads Function ShowMessageAsync(Of T)( _
   ByVal message As String, _
   ByVal dialogButtons As IEnumerable(Of T), _
   Optional ByVal title As String _
) As Task(Of T)
Visual Basic (Usage)Copy Code
Dim instance As IDialogManager
Dim message As String
Dim dialogButtons As IEnumerable(Of T)
Dim title As String
Dim value As Task(Of T)
 
value = instance.ShowMessageAsync(Of T)(message, dialogButtons, title)
C# 
Task<T> ShowMessageAsync<T>( 
   string message,
   IEnumerable<T> dialogButtons,
   string title
)
C++/CLI 
Task<T^>^ ShowMessageAsyncgeneric<typename T>
( 
   String^ message,
   IEnumerable<T^>^ dialogButtons,
   String^ title
) 

Parameters

message
The message to display.
dialogButtons
A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
title
Optional title of the message box.

Type Parameters

T
User-defined dialog result type. In most cases System.Object.ToString is used as the button content.

Return Value

The dialog result.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.